home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
man
/
cat.n
/
winfo.n
< prev
next >
Wrap
Text File
|
1995-07-25
|
20KB
|
331 lines
wwwwiiiinnnnffffoooo((((nnnn)))) TTTTkkkk (((( )))) wwwwiiiinnnnffffoooo((((nnnn))))
_________________________________________________________________
NNNNAAAAMMMMEEEE
winfo - Return window-related information
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
wwwwiiiinnnnffffoooo _o_p_t_i_o_n ?_a_r_g _a_r_g ...?
_________________________________________________________________
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The wwwwiiiinnnnffffoooo command is used to retrieve information about
windows managed by Tk. It can take any of a number of
different forms, depending on the _o_p_t_i_o_n argument. The
legal forms are:
wwwwiiiinnnnffffoooo aaaattttoooommmm _n_a_m_e
Returns a decimal string giving the integer identifier |
for the atom whose name is _n_a_m_e. If no atom exists |
with the name _n_a_m_e then a new one is created. |
wwwwiiiinnnnffffoooo aaaattttoooommmmnnnnaaaammmmeeee _i_d ||
Returns the textual name for the atom whose integer |
identifier is _i_d. This command is the inverse of the |
wwwwiiiinnnnffffoooo aaaattttoooommmm command. Generates an error if no such atom |
exists. |
wwwwiiiinnnnffffoooo cccceeeellllllllssss _w_i_n_d_o_w ||
Returns a decimal string giving the number of cells in |
the color map for _w_i_n_d_o_w.
wwwwiiiinnnnffffoooo cccchhhhiiiillllddddrrrreeeennnn _w_i_n_d_o_w
Returns a list containing the path names of all the
children of _w_i_n_d_o_w. Top-level windows are returned as
children of their logical parents.
wwwwiiiinnnnffffoooo ccccllllaaaassssssss _w_i_n_d_o_w
Returns the class name for _w_i_n_d_o_w.
wwwwiiiinnnnffffoooo ccccoooonnnnttttaaaaiiiinnnniiiinnnngggg _r_o_o_t_X _r_o_o_t_Y
Returns the path name for the window containing the |
point given by _r_o_o_t_X and _r_o_o_t_Y. _R_o_o_t_X and _r_o_o_t_Y are |
specified in screen units (i.e. any form acceptable to |
TTTTkkkk____GGGGeeeettttPPPPiiiixxxxeeeellllssss) in the coordinate system of the root |
window (if a virtual-root window manager is in use then |
the coordinate system of the virtual root window is |
used). If no window in this application contains the |
point then an empty string is returned. In selecting |
the containing window, children are given higher |
priority than parents and among siblings the highest |
one in the stacking order is chosen. |
Page 1 (printed 7/23/95)
wwwwiiiinnnnffffoooo((((nnnn)))) TTTTkkkk (((( )))) wwwwiiiinnnnffffoooo((((nnnn))))
wwwwiiiinnnnffffoooo ddddeeeepppptttthhhh _w_i_n_d_o_w ||
Returns a decimal string giving the depth of _w_i_n_d_o_w |
(number of bits per pixel). |
wwwwiiiinnnnffffoooo eeeexxxxiiiissssttttssss _w_i_n_d_o_w ||
Returns 1 if there exists a window named _w_i_n_d_o_w, 0 if |
no such window exists. |
wwwwiiiinnnnffffoooo ffffppppiiiixxxxeeeellllssss _w_i_n_d_o_w _n_u_m_b_e_r ||
Returns a floating-point value giving the number of |
pixels in _w_i_n_d_o_w corresponding to the distance given by |
_n_u_m_b_e_r. _N_u_m_b_e_r may be specified in any of the forms |
acceptable to TTTTkkkk____GGGGeeeettttSSSSccccrrrreeeeeeeennnnMMMMMMMM, such as ``2.0c'' or |
``1i''. The return value may be fractional; for an |
integer value, use wwwwiiiinnnnffffoooo ppppiiiixxxxeeeellllssss.
wwwwiiiinnnnffffoooo ggggeeeeoooommmmeeeettttrrrryyyy _w_i_n_d_o_w
Returns the geometry for _w_i_n_d_o_w, in the form
_w_i_d_t_hxxxx_h_e_i_g_h_t++++_x++++_y. All dimensions are in pixels.
wwwwiiiinnnnffffoooo hhhheeeeiiiigggghhhhtttt _w_i_n_d_o_w
Returns a decimal string giving _w_i_n_d_o_w's height in
pixels. When a window is first created its height will
be 1 pixel; the height will eventually be changed by a
geometry manager to fulfill the window's needs. If you
need the true height immediately after creating a
widget, invoke uuuuppppddddaaaatttteeee to force the geometry manager to
arrange it, or use wwwwiiiinnnnffffoooo rrrreeeeqqqqhhhheeeeiiiigggghhhhtttt to get the window's
requested height instead of its actual height.
wwwwiiiinnnnffffoooo iiiidddd _w_i_n_d_o_w
Returns a hexadecimal string indicating the X
identifier for _w_i_n_d_o_w.
wwwwiiiinnnnffffoooo iiiinnnntttteeeerrrrppppssss
Returns a list whose members are the names of all Tcl
interpreters (e.g. all Tk-based applications) currently
registered for the display of the invoking application.
wwwwiiiinnnnffffoooo iiiissssmmmmaaaappppppppeeeedddd _w_i_n_d_o_w
Returns 1111 if _w_i_n_d_o_w is currently mapped, 0000 otherwise.
wwwwiiiinnnnffffoooo nnnnaaaammmmeeee _w_i_n_d_o_w
Returns _w_i_n_d_o_w's name (i.e. its name within its parent,
as opposed to its full path name). The command wwwwiiiinnnnffffoooo |
nnnnaaaammmmeeee .... will return the name of the application.
wwwwiiiinnnnffffoooo ppppaaaarrrreeeennnntttt _w_i_n_d_o_w
Returns the path name of _w_i_n_d_o_w's parent, or an empty
string if _w_i_n_d_o_w is the main window of the application.
wwwwiiiinnnnffffoooo ppppaaaatttthhhhnnnnaaaammmmeeee _i_d
Page 2 (printed 7/23/95)
wwwwiiiinnnnffffoooo((((nnnn)))) TTTTkkkk (((( )))) wwwwiiiinnnnffffoooo((((nnnn))))
Returns the path name of the window whose X identifier
is _i_d. _I_d must be a decimal, hexadecimal, or octal
integer and must correspond to a window in the invoking
application.
wwwwiiiinnnnffffoooo ppppiiiixxxxeeeellllssss _w_i_n_d_o_w _n_u_m_b_e_r
Returns the number of pixels in _w_i_n_d_o_w corresponding to |
the distance given by _n_u_m_b_e_r. _N_u_m_b_e_r may be specified |
in any of the forms acceptable to TTTTkkkk____GGGGeeeettttPPPPiiiixxxxeeeellllssss, such as |
``2.0c'' or ``1i''. The result is rounded to the |
nearest integer value; for a fractional result, use |
wwwwiiiinnnnffffoooo ffffppppiiiixxxxeeeellllssss.
wwwwiiiinnnnffffoooo rrrreeeeqqqqhhhheeeeiiiigggghhhhtttt _w_i_n_d_o_w
Returns a decimal string giving _w_i_n_d_o_w's requested
height, in pixels. This is the value used by _w_i_n_d_o_w's
geometry manager to compute its geometry.
wwwwiiiinnnnffffoooo rrrreeeeqqqqwwwwiiiiddddtttthhhh _w_i_n_d_o_w
Returns a decimal string giving _w_i_n_d_o_w's requested
width, in pixels. This is the value used by _w_i_n_d_o_w's
geometry manager to compute its geometry.
wwwwiiiinnnnffffoooo rrrrggggbbbb _w_i_n_d_o_w _c_o_l_o_r
Returns a list containing three decimal values, which |
are the red, green, and blue intensities that |
correspond to _c_o_l_o_r in the window given by _w_i_n_d_o_w. |
_C_o_l_o_r may be specified in any of the forms acceptable |
for a color option.
wwwwiiiinnnnffffoooo rrrroooooooottttxxxx _w_i_n_d_o_w
Returns a decimal string giving the x-coordinate, in
the root window of the screen, of the upper-left corner
of _w_i_n_d_o_w's border (or _w_i_n_d_o_w if it has no border).
wwwwiiiinnnnffffoooo rrrroooooooottttyyyy _w_i_n_d_o_w
Returns a decimal string giving the y-coordinate, in
the root window of the screen, of the upper-left corner
of _w_i_n_d_o_w's border (or _w_i_n_d_o_w if it has no border).
wwwwiiiinnnnffffoooo ssssccccrrrreeeeeeeennnn _w_i_n_d_o_w
Returns the name of the screen associated with _w_i_n_d_o_w,
in the form _d_i_s_p_l_a_y_N_a_m_e._s_c_r_e_e_n_I_n_d_e_x.
wwwwiiiinnnnffffoooo ssssccccrrrreeeeeeeennnncccceeeellllllllssss _w_i_n_d_o_w
Returns a decimal string giving the number of cells in |
the default color map for _w_i_n_d_o_w's screen. |
wwwwiiiinnnnffffoooo ssssccccrrrreeeeeeeennnnddddeeeepppptttthhhh _w_i_n_d_o_w ||
Returns a decimal string giving the depth of the root |
window of _w_i_n_d_o_w's screen (number of bits per pixel). |
Page 3 (printed 7/23/95)
wwwwiiiinnnnffffoooo((((nnnn)))) TTTTkkkk (((( )))) wwwwiiiinnnnffffoooo((((nnnn))))
wwwwiiiinnnnffffoooo ssssccccrrrreeeeeeeennnnhhhheeeeiiiigggghhhhtttt _w_i_n_d_o_w ||
Returns a decimal string giving the height of _w_i_n_d_o_w's |
screen, in pixels. |
wwwwiiiinnnnffffoooo ssssccccrrrreeeeeeeennnnmmmmmmmmhhhheeeeiiiigggghhhhtttt _w_i_n_d_o_w ||
Returns a decimal string giving the height of _w_i_n_d_o_w's |
screen, in millimeters. |
wwwwiiiinnnnffffoooo ssssccccrrrreeeeeeeennnnmmmmmmmmwwwwiiiiddddtttthhhh _w_i_n_d_o_w ||
Returns a decimal string giving the width of _w_i_n_d_o_w's |
screen, in millimeters. |
wwwwiiiinnnnffffoooo ssssccccrrrreeeeeeeennnnvvvviiiissssuuuuaaaallll _w_i_n_d_o_w ||
Returns one of the following strings to indicate the |
default visual type for _w_i_n_d_o_w's screen: ddddiiiirrrreeeeccccttttccccoooolllloooorrrr, |
ggggrrrraaaayyyyssssccccaaaalllleeee, ppppsssseeeeuuuuddddooooccccoooolllloooorrrr, ssssttttaaaattttiiiiccccccccoooolllloooorrrr, ssssttttaaaattttiiiiccccggggrrrraaaayyyy, or |
ttttrrrruuuueeeeccccoooolllloooorrrr. |
wwwwiiiinnnnffffoooo ssssccccrrrreeeeeeeennnnwwwwiiiiddddtttthhhh _w_i_n_d_o_w ||
Returns a decimal string giving the width of _w_i_n_d_o_w's |
screen, in pixels. |
wwwwiiiinnnnffffoooo ttttoooopppplllleeeevvvveeeellll _w_i_n_d_o_w ||
Returns the path name of the top-level window |
containing _w_i_n_d_o_w. |
wwwwiiiinnnnffffoooo vvvviiiissssuuuuaaaallll _w_i_n_d_o_w ||
Returns one of the following strings to indicate the |
visual type for _w_i_n_d_o_w: ddddiiiirrrreeeeccccttttccccoooolllloooorrrr, ggggrrrraaaayyyyssssccccaaaalllleeee, |
ppppsssseeeeuuuuddddooooccccoooolllloooorrrr, ssssttttaaaattttiiiiccccccccoooolllloooorrrr, ssssttttaaaattttiiiiccccggggrrrraaaayyyy, or ttttrrrruuuueeeeccccoooolllloooorrrr. |
wwwwiiiinnnnffffoooo vvvvrrrrooooooootttthhhheeeeiiiigggghhhhtttt _w_i_n_d_o_w ||
Returns the height of the virtual root window |
associated with _w_i_n_d_o_w if there is one; otherwise |
returns the height of _w_i_n_d_o_w's screen. |
wwwwiiiinnnnffffoooo vvvvrrrroooooooottttwwwwiiiiddddtttthhhh _w_i_n_d_o_w ||
Returns the width of the virtual root window associated |
with _w_i_n_d_o_w if there is one; otherwise returns the |
width of _w_i_n_d_o_w's screen. |
wwwwiiiinnnnffffoooo vvvvrrrroooooooottttxxxx _w_i_n_d_o_w ||
Returns the x-offset of the virtual root window |
associated with _w_i_n_d_o_w, relative to the root window of |
its screen. This is normally either zero or negative. |
Returns 0 if there is no virtual root window for |
_w_i_n_d_o_w. |
wwwwiiiinnnnffffoooo vvvvrrrroooooooottttyyyy _w_i_n_d_o_w ||
Returns the y-offset of the virtual root window |
associated with _w_i_n_d_o_w, relative to the root window of |
its screen. This is normally either zero or negative. |
Page 4 (printed 7/23/95)
wwwwiiiinnnnffffoooo((((nnnn)))) TTTTkkkk (((( )))) wwwwiiiinnnnffffoooo((((nnnn))))
Returns 0 if there is no virtual root window for |
_w_i_n_d_o_w.
wwwwiiiinnnnffffoooo wwwwiiiiddddtttthhhh _w_i_n_d_o_w
Returns a decimal string giving _w_i_n_d_o_w's width in
pixels. When a window is first created its width will
be 1 pixel; the width will eventually be changed by a
geometry manager to fulfill the window's needs. If you
need the true width immediately after creating a
widget, invoke uuuuppppddddaaaatttteeee to force the geometry manager to
arrange it, or use wwwwiiiinnnnffffoooo rrrreeeeqqqqwwwwiiiiddddtttthhhh to get the window's
requested width instead of its actual width.
wwwwiiiinnnnffffoooo xxxx _w_i_n_d_o_w
Returns a decimal string giving the x-coordinate, in
_w_i_n_d_o_w's parent, of the upper-left corner of _w_i_n_d_o_w's
border (or _w_i_n_d_o_w if it has no border).
wwwwiiiinnnnffffoooo yyyy _w_i_n_d_o_w
Returns a decimal string giving the y-coordinate, in
_w_i_n_d_o_w's parent, of the upper-left corner of _w_i_n_d_o_w's
border (or _w_i_n_d_o_w if it has no border).
KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
atom, children, class, geometry, height, identifier,
information, interpreters, mapped, parent, path name,
screen, virtual root, width, window
Page 5 (printed 7/23/95)